#include <stdio.h>

struct student{
    char name[20];
    int age;
    int high;
    int wieght;
};

void print(struct student* S){
    printf("%s,%d,%d,%d\n",S->name,S->age,S->high,S->wieght);
    printf("%s,%d,%d,%d\n",(*S).name,(*S).age,(*S).high,(*S).wieght);
}

int main(){
    struct student s = {"abb",20,160,90};  // 初始化结构体
    printf("%s,%d,%d,%d\n",s.name,s.age,s.high,s.wieght);
    print(&s);
}